/* styles.css */
/* 基础样式 */
:root {
    --primary: #2A6DFF;
    --secondary: #00C9A7;
    --bg-light: #F8FAFC;
    --text-dark: #2D3748;
    --text-light: #FFFFFF;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
  }
  
  #app {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .scroll-indicator {
    display: none !important; /* 强制隐藏指示点 */
  }
  /* 上方选择区 (30%高度) */
  .selector-area {
    height: 15vh;
    background: white;
    box-shadow: var(--shadow);
    padding: 12px;
  }
  .scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
  }
  
  .dot.active {
    background: var(--primary);
    transform: scale(1.2);
  }
  /* 分类导航 */
  .category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    
    &::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }
  }
  .category-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    
  }
  
  .category-tab.active {
    background: var(--primary);
    color: var(--text-light);
  }
  
  /* 音标横向滚动区 */
  .symbols-scroll {
    flex: 1;
    overflow-x: auto;
    margin-top: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    &::-webkit-scrollbar {
      display: none;
    }
    
    /* 保持惯性滚动 */
    -webkit-overflow-scrolling: touch;
  }
  
  .symbol-group {
    display: none;
    gap: 12px;
    padding: 0 8px;
  }
  
  .symbol-group.active {
    display: flex;
  }
  
  .symbol-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .symbol-item.active {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
  }
  
  /* 下方内容区 (70%高度) */
  .content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  
  .speak-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
  }
  
  .examples {
    margin: 4px 0;
  }
  
  .word-list {
    display: grid;
    gap: 12px;
  }
  
  .word-item {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }
  
  .transcription {
    color: #666;
    font-size: 0.9em;
    margin-top: 4px;
  }
  
  .gif-demo {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    border-radius: var(--radius-sm);
  }
  
  .placeholder {
    text-align: center;
    color: #999;
    margin-top: 40px;
  }
  
  /* 优化滚动条 */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
  }

